@Repository
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th=
        "http://www.thymeleaf.org" lang="en">
<head th:replace="fragments/header :: head">
</head>
<body>
<div th:replace="fragments/header :: navbar"></div>
<div class="container">
  <h3 class="text-center">图书库存明细汇总</h3>
  <div class = "col-12 text-right">
    <a class="btn btn-primary" th:href="@{/books/add}">新增图书 </a>
  </div>
  <div class="row">
  </div>
  <br/>
  <div class="table-responsive">
    <table class="table table-striped">
      <thead>
      <tr>
        <th><span>编号</span> <span></span></th>
        <th><span>图书名称</span> <span></span></th>
        <th><span>图书作者</span> <span></span></th>
        <th><span>图书出版社</span> <span></span></th>
        <th><span>图书 ISBN</span> <span></span></th>
        <th><span>图书价格</span> <span></span></th>
        <th><span>图书缩略图</span> <span></span></th>
        <th></th>
      </tr>
      </thead>
      <tbody>
      <tr th:each="book : ${books}">
        <td>[[${book.bookId}]]</td>
        <td>[[${book.bookName}]]</td>
        <td>[[${book.bookAuthor}]]</td>
        <td>[[${book.bookPublisher}]]</td>
        <td>[[${book.bookIsbn}]]</td>
        <td>[[${book.bookPrice}]]</td>
        <td>
          <img width="30px" th:src="@{|/bookImage?bookId=
${book.bookId}|}"/>
        </td>
        <td class="text-right">
          <div class="btn-group flex-btn-group-container">
            <a th:href="@{'/books/view/{bookId}'(bookId=
${book.bookId})}"
               class="btn btn-info btn-sm">
              <span class="fa fa-eye"></span>
              <span class="d-none d-md-inline">查看</span>
            </a>
            <a th:href="@{'/books/edit/{bookId}'(bookId=
${book.bookId})}"
               class="btn btn-primary btn-sm">
              <span class="fa fa-pencil"></span>
              <span class="d-none d-md-inline">编辑</span>
            </a>
            <a th:href="@{'/books/delete/{bookId}'(bookId=
${book.bookId})}"
               class="btn btn-danger btn-sm">
              <span class="fa fa-remove"></span>
              <span class="d-none d-md-inline">删除</span>
            </a>
          </div>
        </td>
      </tr>
      </tbody>
    </table>
  </div>
</div>
</body>
</html>